<template>
	<view class="wanl-success">
		<!-- 导航条 -->
		<view class="cu-custom" :style="{ height: $wanlshop.wanlsys().height + 'px' }">
			<view
				class="cu-bar fixed"
				:style="{
					height: $wanlshop.wanlsys().height + 'px',
					paddingTop: $wanlshop.wanlsys().top + 'px'
				}"
			>
				<view class="action" @tap="onBackUser"><text class="wlIcon-fanhui1"></text></view>
				<view class="content" :style="{ top: $wanlshop.wanlsys().top + 'px' }">
					<text>{{ title }}完成</text>
				</view>
			</view>
		</view>

		<view class="content">
<!-- 			<text class="icon wlIcon-pintuantuangouchenggong"></text>
			<text class="text-lg margin-tb">{{ title }}已成功</text> -->
			<view class="padding-xl text-df">
				<text class="">亲爱的！</text>
				<view class="margin-tb-sm text-indent">
					您好！首先，我想对您表示最真挚的感谢。感谢您在众多的模特中，选择了我，并为我投下了宝贵的一票。您的支持和信任，对我来说是莫大的鼓励和动力。
				</view>
				<view class="margin-tb-sm text-indent">
					在选美的道路上，有您的陪伴和支持，我感到非常幸运和温暖。您的投票不仅是对我工作的肯定，更是对我个人努力的认可。我会倍加珍惜这份信任，继续努力，为大家带来更加精彩、有趣的内容。
				</view>
				<view class="margin-tb-sm text-indent">
					同时，我也希望能够在未来的日子里，与您一起分享更多的快乐和感动。我会不断努力，提高自己的模特水平，为大家呈现更好的自己。
				</view>
				<view class="margin-tb-sm text-indent">
					再次感谢您的支持和投票，祝您生活愉快，合阖共生，家庭幸福！
				</view>
				
				
				
				
			</view>
			<view class="button padding-xl margin-top-lg">
				<button class="cu-btn block wanl-bg-orange margin-tb-sm lg an" v-if="type == 'comment'" @tap="$wanlshop.to('/pages/user/comment/comment')">查看评论</button>
				<button
					v-if="type == 'pay' && t !== 'lw'"
					class="cu-btn block wanl-bg-orange an margin-tb-sm lg"
					@tap="$wanlshop.on('/pages/user/address/address?source=3&order_id=' + id)"
				>
					添加收货地址
				</button>
				<button class="cu-btn block wanl-bg-orange margin-tb-sm lg an" v-if="type == 'feedback'" @tap="$wanlshop.to('/pages/user/feedback/lists')">查看反馈</button>
				<button class="cu-btn block wanl-bg-orange margin-tb-sm lg an" v-if="type == 'complaint'" @tap="$wanlshop.to('/pages/user/complaint/lists')">查看举报</button>
				<button class="cu-btn block wanl-bg-orange margin-tb-sm lg an" v-if="type == 'withdraw'" @tap="$wanlshop.to('/pages/user/money/witlist')">查看提现列表</button>
				<button class="cu-btn block bg-red margin-tb-sm lg an" v-if="type == 'find'" @tap="$wanlshop.to('/pages/apps/find/user')">查看创作中心</button>
				<button class="cu-btn block wanl-bg-orange margin-tb-sm lg an" v-if="type == 'recharge'" @tap="$wanlshop.to('/pages/user/money/money')">查看钱包</button>
				<button class="cu-btn block line-gray margin-tb-sm lg toupiao" @tap="onIndex">返回投票</button>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: '',
			type: '',
			title: '',
			t: ''
		};
	},
	onLoad(options) {
		this.t = options.t;
		if (options.type == 'pay') {
			this.title = '支付';
			this.id = options.id;
		} else if (options.type == 'comment') {
			this.title = '评论';
		} else if (options.type == 'feedback') {
			this.title = '反馈';
		} else if (options.type == 'withdraw') {
			this.title = '请等待后台审核，提交';
		} else if (options.type == 'recharge') {
			this.title = '充值';
		} else if (options.type == 'complaint') {
			this.title = '举报';
		} else if (options.type == 'find') {
			this.title = '作品上传';
		}
		this.type = options.type;
	},
	methods: {
		onIndex() {
			uni.navigateBack({
				delta: 2
			});
		},
		onBackUser() {
			uni.setTabBarStyle({
				backgroundColor: '#ffffff',
				borderStyle: 'white'
			});
			uni.switchTab({
				url: '/pages/user'
			});
		}
	}
};
</script>

<style>
.wanl-success {
	height: 100vh;
	background-color: #f3dded;
}
.wanl-success .action {
	color: #fff;
}
.wanl-success .content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/* color: #fff; */
}

.wanl-success .content .icon {
	font-size: 180rpx;
	color: rgba(170, 40, 248, 1);
	margin-top: 150rpx;
}
.wanl-success .content .button {
	width: 100%;
}

.toupiao {
	color: #000;
}

.text-indent {
	text-indent: 22rpx;
}
</style>
